<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('修改预约单')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-statement-edit" th:object="${employee}">
		<input  name="id" type="hidden" th:field="*{id}"/>
		<div class="form-group">
			<label class="col-sm-3 control-label">姓名：</label>
			<div class="col-sm-8">
				<input name="name" class="form-control" type="text" th:field="*{name}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">邮箱：</label>
			<div class="col-sm-8">
				<input name="email" class="form-control" type="text" th:field="*{email}">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">年龄：</label>
			<div class="col-sm-8">
				<input name="age" class="form-control" type="text" th:field="*{age}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">性别：</label>
			<div class="col-sm-8">
				<select name="gender" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
					<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}" th:field="*{gender}"></option>
				</select>
			</div>

		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">是否是超管：</label>
			<div class="col-sm-8">
				<select name="admin" class="form-control m-b" th:with="type=${@dict.getType('si_car_package')}">
					<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}" th:field="*{admin}"></option>
				</select>
			</div>
		</div>
		<li>
			所在部门：
			<select name="deptId">
				<option value="">所有</option>
				<option th:each="dep : ${department}" th:text="${dep.name}" th:field="*{department.id}"
						th:value="${dep.id}"></option>
			</select>
		</li>
	</form>
</div>
<th:block th:include="common/include :: footer" />
<script type="text/javascript">
	var prefix = ctx + "/business/employee";
	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(prefix + "/edit", $('#form-statement-edit').serialize());
		}
	}
</script>
</body>
</html>
